package com.wwz.controller;

import com.wwz.service.ProductService;
import com.wwz.service.ProductServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author wwz
 */
@RequestMapping("/api")
@Controller
public class ProductServiceController {

    @Autowired
    private ProductService productService;
    @RequestMapping("/update")
    @ResponseBody
    public Object get(String status,String num){
        return ""+productService.update(status,Integer.parseInt(num));
    }
}
